package com.zg.ktcomwan.model

import com.squareup.moshi.*
import com.zg.ktcomwan.test.Tag
import kotlinx.serialization.Serializable

/***
 * @Author:      zxd
 * @CreateDate:  2021/6/2 14:52
 * @Description: 这里不能直接转换成
 */
@Serializable
data class ArticleBean(
    val apkLink: String,
    val audit: Int,
    val author: String,
    val canEdit: Boolean,
    val chapterId: Int,
    val chapterName: String,
    val collect: Boolean,
    val courseId: Int,
    val desc: String,
    val descMd: String,
    val envelopePic: String,
    val fresh: Boolean,
    val host: String,
    val id: Int,
    val link: String,
    val niceDate: String,
    val niceShareDate: String,
    val origin: String,
    val prefix: String,
    val projectLink: String,
    val publishTime: Long,
    val realSuperChapterId: Int,
    val selfVisible: Int,
    val shareDate: Long,
    val shareUser: String,
    val superChapterId: Int,
    val superChapterName: String,
    val tags: List<TagBean>,
    val title: String,
    val type: Int,
    val userId: Int,
    val visible: Int,
    val zan: Int
)

@Serializable
data class TagBean(
    val name: String,
    val url: String
)